package com.acme.task2;

public class Foo {

	int iterat;
	Foo(int i){
		iterat = i;
	}
	@Override
	protected void finalize() throws Throwable {	
		System.out.println("Finalize was called");
		System.out.println("Finalize was called on " + iterat + " iteration");
		super.finalize();
	}
}
